/ Assembly List / LJCWinFormCommon / FormCommon / ResizeImage

Namespace - LJCWinFormCommon


Parameters
image - The original image.
controlSize - The target conrol size.
keepAspectRatio - Indicates that the spact ratio should be kept.

Returns

The resized image.

Syntax

C#
public static Image ResizeImage(Image image, Size controlSize, Boolean keepAspectRatio = True)

Resizes an image.

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.